<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="ar.edu.itba.twiteros.util.Facebook"  %>
<%@ page import="com.google.code.facebookapi.FacebookParam"  %>

<% request.setAttribute("tab", 4); %>
<%@ include file="/header.jsp" %>

<%
	Facebook facebook= new Facebook(request.getParameter(FacebookParam.SESSION_KEY.toString()));
	String uids=facebook.getUidsFriends();
%>

<%
	String content= "<fb:name uid='"+ facebook.getClient().users_getLoggedInUser() +"' firstnameonly='true' shownetwork='false'/> wants to invite you to Twiteros! <fb:req-choice url='"+ facebook.getAddUrl()+"' label='Add Twiteros application to your profile!'/>";
%>

<fb:request-form action="http://apps.facebook.com/twiteros/" method="POST" invite="true" type="Twiteros App" content="<%= content %>">

<fb:multi-friend-selector max="20" actiontext="Here are your friends who haven't added Twiteros to their profile." showborder="true" rows="5" exclude_ids="<%= uids%>" />

</fb:request-form>
